<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" class="form-control selectpage" data-field="nickname" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_upload('logo', '', ['name' => 'row[logo]', 'data-rule' => 'required'], ['data-mimetype' => 'image/gif,image/jpeg,image/png,image/jpg,image/bmp', 'data-multiple' => 'false'], ['class' => 'btn btn-primary fachoose', 'data-mimetype' => 'image/*']);}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_upload('image', '', ['name' => 'row[image]', 'data-rule' => 'required'], ['data-mimetype' => 'image/gif,image/jpeg,image/png,image/jpg,image/bmp', 'data-multiple' => 'false'], ['class' => 'btn btn-primary fachoose', 'data-mimetype' => 'image/*']);}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_uploads('images', '', ['name' => 'row[images]', 'data-rule' => 'required'], ['data-mimetype' => 'image/gif,image/jpeg,image/png,image/jpg,image/bmp', 'data-multiple' => 'false'], ['class' => 'btn btn-primary fachoose', 'data-mimetype' => 'image/*']);}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flag')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-flag" data-rule="" data-source="shop/flag/index" class="form-control selectpage" data-multiple="true" name="row[flag]" type="text" value="">-->
            <input id="c-flag" data-rule="" class="form-control" name="row[flag]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Business')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-business" data-rule="required" class="form-control" name="row[business]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Introduce')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[introduce]', null, ['data-rule'=>"required"])}
        </div>
    </div>
    <div class="form-group district">
        <label for="c-district" class="control-label col-xs-12 col-sm-2">请选择地址:</label>
        <div class="col-xs-12 col-xs-2 hide">
            <select name="row[province_id]" data-rule="required" data-id="27833" class="form-control province">
                <option value="0" selected="selected">请选择省</option>
            </select>
        </div>
        <div class="col-xs-12 col-xs-2 hide">
            <select name="row[city_id]" data-rule="required" data-id="28141" class="form-control city">
                <option value="0">请选择市</option>
            </select>
        </div>
        <span style="line-height: 31px;float: left;margin-left: 15px;">广东省深圳市</span>
        <div class="col-xs-12 col-xs-2">
            <select name="row[area_id]" data-rule="required" data-id="0" class="form-control district">
                <option value="0">请选择区</option>
            </select>
        </div>
        <div class="col-xs-12 col-xs-2">
            <select name="row[street_id]" data-rule="required" data-id="0" class="form-control street">
                <option value="0">请选择街道</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Circle_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-circle_id" data-rule="required" data-source="circle/index" class="form-control selectpage" name="row[circle_id]" type="text" value="">
        </div>
    </div>
    {include file="common/map" latValue="" lngValue="" addressValue=""}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vip_tage')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-vip_tage" data-rule="required" class="form-control" step="0.01"  max="10" min="0"  name="row[vip_tage]" type="number" value="8.0">
        </div>
        <div class="col-xs-12 col-sm-2">
            <span style="line-height: 31px;">折</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Acg_price')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-avg_price" data-rule="required" class="form-control" step="0.01" max="999999" min="0" name="row[avg_price]" type="number" value="0.00">
        </div>
        <div class="col-xs-12 col-sm-2">
            <span style="line-height: 31px;">元</span>
        </div>
    </div>
    <div class="form-group hide">
        <label class="control-label col-xs-12 col-sm-2">{:__('Clock_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-clock_number" data-rule="required" class="form-control" name="row[clock_number]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_top]', ["不推荐", "推荐"])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_show')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_show]', [1=>"上架", 0=>"下架"], 1)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
